package miku.firstgame.net
{
	import flash.events.Event;

	/**
	 * 收到协议之后触发的事件
	 */
	//TODO 这个事件应该还需要改进，以便适应并发IRequest的情况
	public class XMLPacketEvent extends Event
	{
		{
			XML.ignoreComments = true;
			XML.ignoreWhitespace = true;
		}

		public static const PACKET_DATA:String = "packetData";

		public var data:XML;

		public function XMLPacketEvent(type:String, data:XML)
		{
			super(type, false, false);
			this.data = data;
		}

		override public function clone():Event
		{
			return new XMLPacketEvent(type, data);
		}
	}
}
